﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Architecture.Repository.Migrations
{
    public partial class 请假 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_Askforleave",
                table: "Askforleave");

            migrationBuilder.RenameTable(
                name: "Askforleave",
                newName: "Askforleaves");

            migrationBuilder.AlterColumn<decimal>(
                name: "CountTime",
                table: "Askforleaves",
                type: "decimal(18,2)",
                nullable: false,
                oldClrType: typeof(int),
                oldType: "int");

            migrationBuilder.AddPrimaryKey(
                name: "PK_Askforleaves",
                table: "Askforleaves",
                column: "Askforleaveid");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_Askforleaves",
                table: "Askforleaves");

            migrationBuilder.RenameTable(
                name: "Askforleaves",
                newName: "Askforleave");

            migrationBuilder.AlterColumn<int>(
                name: "CountTime",
                table: "Askforleave",
                type: "int",
                nullable: false,
                oldClrType: typeof(decimal),
                oldType: "decimal(18,2)");

            migrationBuilder.AddPrimaryKey(
                name: "PK_Askforleave",
                table: "Askforleave",
                column: "Askforleaveid");
        }
    }
}
